﻿using System;
using System.ServiceModel;

using Google.GData.Client;
using Google.GData.Photos;

using SBPweb.GoogleDataAPI.Shared.Contracts;

namespace SBPweb.GoogleDataAPI.Server.Services
{

    public class PhotoService : ClientService, IPhotoService
    {

        #region Private fields

        #endregion

        #region Methods

        #region Operations

        [OperationBehavior(
            TransactionScopeRequired = true
        )]
        public void DoStuff()
        {
            FetchAndCheckToken();
        }

        #endregion

        #region Overidden

        protected override Service CreateServiceInstance()
        {
            return new PicasaService("gdata.sbpweb.hu");
        }

        protected internal override string GetCryptographycSalt(string extra)
        {
            return string.Format("80799C07-383A-464b-8731-CEE8ABA3F294-{0}", extra);
        }

        #endregion

        #endregion

    }

}